import React, { PureComponent } from 'react'
import WaitItem from "./WaitItem/WaitItem";
import { connect } from 'react-redux'
import recordAction from "../../../../redux/action/recordAction";
class WaitList extends PureComponent {
  recordDes=(el)=>{
    this.props.recordAction('record',el)
  }
  render() {
    let {waitlist} = this.props
    return (
      <>
        <div className="sss">
          <p className="mzi3">近期最受期待</p>
          <WaitItem waitlist={waitlist} recordDes={this.recordDes}/>
        </div >
      </ >
    )
  }
}
export default connect(
  state=>({}),
  {
    recordAction
  }
)(WaitList)